package com.zsrt.java.day20170102.lh.classics20;

import java.util.Scanner;

/**
 * 输入一串字符判断字符中大小字母的个数
 * @author My
 *
 */
public class Demo06 {
	public static void main(String[] args) {
		
		Scanner sc=new Scanner(System.in);
		boolean temp=true;
		String st;
		int countA=0;
		int counta=0;
		
	
		System.out.println("输入一串字符：");
		st=sc.next();
		for(int i=0;i<st.length();i++){
			if(st.charAt(i)>='A' && st.charAt(i)<='Z'){
				countA++;
			}else if(st.charAt(i)>='a' && st.charAt(i)<='z'){
				counta++;
			}
		}
		
		System.out.println("大写字符串有："+countA);
		System.out.println("小写字符串有："+counta);
			
	
		
		
	}

}
